
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
upper-case
Advanced tools
The upper-case npm package is a simple utility that converts strings to uppercase. It is primarily used for text transformation, enhancing readability or meeting specific data formatting requirements in applications.
Convert string to uppercase
This feature takes a string input and converts all the characters in the string to their uppercase equivalents.
"hello world".toUpperCase()
Similar to upper-case, lodash.uppercase is part of the Lodash library which provides a more comprehensive set of string manipulation functions. While upper-case focuses solely on converting strings to uppercase, lodash.uppercase is part of a larger toolkit that includes various utilities for handling strings, arrays, objects, etc., making it more versatile for complex applications.
Upper case a string.
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString
property, numbers and booleans. Empty values (null
and undefined
) will result in an empty string.
npm install upper-case --save
var upperCase = require('upper-case')
upperCase(null) //=> ""
upperCase('string') //=> "STRING"
upperCase('string', 'tr') //=> "STRİNG"
upperCase({ toString: function () { return 'test' } }) //=> "TEST"
Includes a TypeScript definition.
MIT
FAQs
Transforms the string to upper case
The npm package upper-case receives a total of 7,365,427 weekly downloads. As such, upper-case popularity was classified as popular.
We found that upper-case demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.